const Mock = require('mockjs')
const { list, datalist } = Mock.mock({
  'list|20': [
    {
      title: '@ctitle(3)',
      id: '@id',
      word: '@cword(8,15)',
      img: '@image(100x100,@color,花咲<彼岸)',
      'price|100-999': 1,
    },
  ],
  'datalist|10': [
    {
      title: '@ctitle(3,4)',
      id: '@id',
      'children|30': [
        {
          title: '@ctitle(3)',
          id: '@id',
          word: '@cword(8,15)',
          img: '@image(100x100,@color,花咲<彼岸)',
          'price|100-999': 1,
        },
      ],
    },
  ],
})
module.exports = { list, datalist }
